/**
 * Created by wry on 2015/2/10.
 */

'use strict';

angular.module('backofficeApp.customerManager.services', ['ngResource']).
    factory('customerService', function ($resource) {
        return $resource('http://'+backOfficeHost+'/rest/v1.0/backoffice/Systems/:action',
            {
                //objId: "@objId"   //@会在传入的对象中读取相应的属性，对象是从controller中传来的
            },
            {
                sendMessageService: {
                    method: 'POST',
                    params: {
                        action: "sendMessageByCustom"
                    },
                    headers: {
                        'Content-Type': 'application/json'
                    }
                }
            }
        );
    });

